In MySQL database sometimes we want to calculate difference between values in successive rows. Consider an example where the score of a cricket match after every over is stored in another row. The...
When we need to find the maximum number in a column of our database, the MAX function is used. When we have requirement to get the highest paid employee in a company, the...
Regular expressions, used in most of other programming languages, are also well established in MySQL where they may be used to specify patterns for search operation in a database. The
Data of a table in a database may be dumped (exported) to a file called export database. Similarly, same data may be loaded (exported) from a CSV file called import datab...
Prepared statements are considered to be the immediate statements of MySQL with advantages of client/server binary protocol. Before MySQL 4.1 version, the query that was sent to t...
In this chapter we will briefly go over basics in transactions, such as money transactions, and how to properly execute them with MySQL.
A MySQL transaction is a group of sequential databas...